package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统缓存
 * </p>
 *
 * @author zr
 * @since 2020-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_sys_cache")
@ApiModel(value="SysCache对象", description="系统缓存")
public class SysCache extends Model<SysCache> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "key")
    @TableField("verifyKey")
    private String verifyKey;

    @ApiModelProperty(value = "value")
    @TableField("verifyCode")
    private String verifyCode;

    @ApiModelProperty(value = "过期时间")
    @TableField("c_time")
    private LocalDateTime currentTime;

    @ApiModelProperty(value = "是否验证")
    @TableField("is_check")
    private Integer isCheck;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
